package at.fhj.pse.domain.test;

import java.io.IOException;

import javax.ejb.EJB;
import javax.ejb.Remote;
import javax.ejb.Stateless;

import at.fhj.pse.datasource.model.Employee;
import at.fhj.pse.domain.EmployeeBean;
import at.fhj.pse.domain.exception.WrongCredentialsException;

@Stateless
@Remote(EmployeeBean.class)
public class EmployeeBeanTestFacade implements EmployeeBean {

	@EJB(beanName = "EmployeeBeanImpl")
	private EmployeeBean bean;

	@Override
	public Employee getEmployeeById(long id) {
		return bean.getEmployeeById(id);
	}

	@Override
	public Employee login(String username, String password) throws IOException, WrongCredentialsException {
		return bean.login(username, password);
	}

}